<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/common/taglibs.jsp" %>

<div class="page">
    <div class="pageContent">


        <form method="post" action="${ctx}/foodType/food-type!save.action" class="pageForm required-validate"
              onsubmit="return validateCallback(this, dialogAjaxDone)">
            <input type="hidden" name="id" value="${id}"/>

            <div class="pageFormContent" layoutH="70" id="user-accource">

                <div class="unit">
                    <label>名称:</label>
                    <input type="text" name="name" size="40" id="name" class="required" value="${name}"/>

                </div>


                <div class="unit">
                    <label>父级:</label>
                    <select name="pid" id="pid">
                        <option value="0">--请选择--</option>
                        <s:iterator value="foodTypePojos" var="item">
                            <option value="${item.id}" <c:if test="${item.id==entity.pid}">selected</c:if>>
                                【一级】${item.name}</option>
                            <s:iterator value="foodTypePojoList" var="second">
                                <option value="${second.id}" <c:if test="${second.id ==entity.pid}">selected</c:if>>
                                    &nbsp;&nbsp;&nbsp;&nbsp;【二级】${second.name}</option>
                            </s:iterator>
                        </s:iterator>
                    </select>
                </div>


            </div>

            <div class=" formBar">
                <ul>
                    <li>
                        <div class="buttonActive">
                            <div class="buttonContent">
                                <button type="submit" class="toolBar-btn">提交</button>
                            </div>
                        </div>
                    </li>
                    <li>
                        <div class="button">
                            <div class="buttonContent">
                                <button type="button" class="close toolBar-btn2">取消</button>
                            </div>
                        </div>
                    </li>
                </ul>
            </div>

        </form>

    </div>
</div>
